Method and apparatus for displaying marker element in virtual scene, computer device, and computer-readable storage medium

ABSTRACT

This application relates to a method for displaying a marker element in a virtual scene performed at a terminal. The method includes: rendering a display interface of a virtual scene; obtaining marker indication information used for indicating a target virtual item marked by a user of the terminal corresponding to a user account in the virtual scene for user accounts in a same team to view, the user account controlling a current virtual object in the virtual scene; obtaining graphic data of a marker element according to the marker indication information, the marker element being a graphic element used for indicating a location of the target virtual item in the virtual scene to the user accounts in the same team; and rendering the marker element according to the graphic data at a designated location around the target virtual item in the display interface of the virtual scene.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation application of PCT Patent ApplicationNo. PCT/CN2019/082200, entitled “METHOD AND DEVICE FOR DISPLAYING MARKERELEMENTS IN VIRTUAL SCENE, COMPUTER DEVICE, AND COMPUTER-READABLESTORAGE MEDIUM” filed on Apr. 11, 2019, which claims priority to ChinesePatent Application No. 201810480396.2, entitled “METHOD FOR DISPLAYINGMARKER ELEMENT IN VIRTUAL SCENE, COMPUTER DEVICE, AND STORAGE MEDIUM”filed May 18, 2018, all of which are incorporated by reference in theirentirety.

FIELD OF THE TECHNOLOGY

This application relates to the field of computer applicationtechnologies, and in particular, to a method and apparatus fordisplaying a marker element in a virtual scene, a computer device, and acomputer-readable storage medium.

BACKGROUND OF THE DISCLOSURE

A user has a demand for marking a virtual object in a virtual scene inmany application programs (for example, a virtual reality applicationprogram, a three-dimensional map program, a military simulation program,a first-person shooting game, and a multiplayer online battle arenagame) in which virtual scenes are constructed.

In the related art, a target virtual item in the virtual scene may beindicated through a specific interface. For example, in a specificvirtual scene, when a virtual object (for example, a game character)that is being controlled by a user currently obtains a virtual prop, “atelescope”, a telescope interface may be triggered and opened, and thevirtual scene is observed from a viewing angle of the telescope.Moreover, the user may mark a specific virtual object (for example, abuilding) through a shortcut operation in a scene picture of the virtualscene observed from the viewing angle of the telescope. In this case, amarker element (for example, an arrow) is displayed corresponding to thebuilding in the scene picture of the virtual scene observed from theviewing angle of the telescope. When the user reopens the telescopeinterface subsequently, and the building exists in the scene picture ofthe virtual scene observed from the viewing angle of the telescope, thearrow is displayed synchronously corresponding to the building.

SUMMARY

According to embodiments of this application, a method and apparatus fordisplaying a marker element in a virtual scene, a computer device, and acomputer-readable storage medium are provided.

A method for displaying a marker element in a virtual scene is performedby a terminal having a processor and memory storing a plurality ofprograms to be executed by the processor, the method including:

rendering a display interface of the virtual scene, the virtual sceneincluding a plurality virtual items;

obtaining marker indication information used for indicating a targetvirtual item, the target virtual item being a virtual item marked by auser of the terminal corresponding to a user account in the virtualscene for user accounts in a same team to view, the user accountcontrolling a current virtual object in the virtual scene;

obtaining graphic data of a marker element according to the markerindication information, the marker element being a graphic element usedfor indicating a location of the target virtual item in the virtualscene to the user accounts in the same team; and

rendering the marker element according to the graphic data at adesignated location around the target virtual item in the displayinterface of the virtual scene.

A terminal, comprising a processor and a memory, the memory storing aplurality of computer-executable instructions, the plurality ofcomputer-executable instructions, when being loaded and executed by theprocessor, causing the terminal to implement the foregoing method fordisplaying a marker element in a virtual scene.

A non-transitory computer-readable storage medium, storing a pluralityof computer-executable instructions, the plurality ofcomputer-executable instructions, when being loaded and executed by aprocessor of a terminal, causing the terminal to implement the foregoingmethod for displaying a marker element in a virtual scene.

Details of one or more embodiments of this application are provided inthe accompany drawings and descriptions below. Other features andadvantages of this application become more obvious with reference to thespecification, the accompanying drawings, and the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

To describe the technical solutions in the embodiments of thisapplication more clearly, the following briefly introduces theaccompanying drawings required for describing the embodiments.Apparently, the accompanying drawings in the following description showmerely some embodiments of this application, and a person of ordinaryskill in the art may still derive other drawings from the accompanyingdrawings without creative efforts.

FIG. 1a is an application scenario diagram of a method for displaying amarker element in a virtual scene according to an exemplary embodimentof this application.

FIG. 1b is a schematic structural diagram of a terminal according to anexemplary embodiment of this application.

FIG. 2 is a schematic diagram of a scene picture of a virtual sceneaccording to an exemplary embodiment of this application.

FIG. 3 is a schematic diagram of a procedure for displaying a markerelement in a virtual scene according to an exemplary embodiment of thisapplication.

FIG. 4 is a schematic display diagram of a marker element included inthe embodiment shown in FIG. 3.

FIG. 5 is a schematic display diagram of another marker element includedin the embodiment shown in FIG. 3.

FIG. 6 is a flowchart of a method for displaying a marker element in avirtual scene according to an exemplary embodiment of this application.

FIG. 7 is a schematic diagram of a marking operation included in theembodiment shown in FIG. 6.

FIG. 8 is a schematic diagram of selection of a marker element typeincluded in the embodiment shown in FIG. 6.

FIG. 9 is a schematic diagram of calculation of a straight-line distanceincluded in the embodiment shown in FIG. 6.

FIG. 10 is a schematic display diagram of distance information includedin the embodiment shown in FIG. 6.

FIG. 11 is a schematic display diagram of another type of distanceinformation included in the embodiment shown in FIG. 6.

FIG. 12 is a schematic display diagram of still another type of distanceinformation included in the embodiment shown in FIG. 6.

FIG. 13 is a flowchart of displaying a marker element according to anexemplary embodiment of this application.

FIG. 14 is a schematic block diagram of an apparatus for displaying amarker element in a virtual scene according to an exemplary embodimentof this application.

FIG. 15 is a structural block diagram of a computer device according toan exemplary embodiment of this application.

DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages of thisapplication clearer and more comprehensible, this application is furtherdescribed in detail below with reference to the accompanying drawingsand the embodiments. It is to be understood that the specificembodiments described herein are only used for explaining thisapplication, and are not used for limiting this application.

A virtual scene refers to a virtual scene environment generated by usinga computer and can provide a multimedia virtual world, and a user maycontrol an operable virtual object in the virtual scene through anoperating device or an operation interface, to observe a virtual item,such as things, a character, or scenery, in the virtual scene from aviewing angle of the virtual object, or interact with a virtual item,such as things, a character, or scenery, or another virtual object inthe virtual scene through the virtual object, for example, attack atarget enemy by operating a virtual soldier.

The virtual scene is generally generated by an application program in acomputer device, such as a terminal, and displayed based on hardware(for example, a screen) in the terminal. The terminal may be a mobileterminal such as a smartphone, a tablet computer, or an ebook reader.Alternatively, the terminal may be a personal computer device such as anotebook computer or a fixed computer.

A method for displaying a marker element in a virtual scene provided inthis application may be applied to an application environment shown inFIG. 1a . A first terminal 102 and a second terminal 104 communicatewith a server 106 by using a network. The first terminal 102 displays afirst display interface, determines a virtual item corresponding to amarking operation as a target virtual item when receiving the markingoperation, then transmits a marking request to the server 106, themarking request including an identifier of the target virtual item. Theserver 106 detects whether a distance between the target virtual itemand a current virtual object is less than a visible distance of thecurrent virtual object, and transmits marker indication information tothe first terminal 102 and/or the second terminal 104 when the targetvirtual item is detected to be located within the visible distance ofthe current virtual object. The first terminal 102 and/or the secondterminal 104 obtains graphic data of a marker element according to themarker indication information, obtains the marker element throughrendering according to the graphic data, then displays the markerelement at a designated location around the target virtual item in adisplay interface of the virtual scene. In addition, the first terminal102 and/or the second terminal 104 further obtain(s) distanceinformation, the distance information being used for indicating adistance between the target virtual item and the current virtual object,and displays the distance information at a designated location aroundthe marker element in the display interface of the virtual scene.

The second terminal 104 may be a terminal used by a friend user (forexample, a teammate) of a user corresponding to the first terminal 102.The first terminal 102 or the second terminal 104 may be, but is notlimited to, a mobile terminal such as a smartphone, a tablet computer,or an ebook reader. Alternatively, the terminal may be a personalcomputer device such as a notebook computer or a fixed computer. Theserver 106 may be implemented by an independent server or a servercluster including a plurality of servers respectively.

FIG. 1b is a schematic structural diagram of a terminal according to anexemplary embodiment of this application. As shown in FIG. 1b , theterminal includes a mainboard 110, an external output/input device 120,a memory 130, an external interface 140, a capacitive touch system 150,and a power supply 160.

Processing elements, such as a processor and a controller, areintegrated in the mainboard 110.

The external output/input device 120 may include a display component(for example, a display screen), a sound playback component (forexample, a loudspeaker), a sound collecting component (for example, amicrophone), and various types of keys.

The memory 130 stores program code and data.

The external interface 140 may include an earphone interface, a charginginterface, a data interface, and the like.

The capacitive touch system 150 may be integrated in the displaycomponent or a key of the external output/input device 120, and thecapacitive touch system 150 is configured to detect a touch operationperformed by the user on the display component or the key.

The power supply 160 is configured to supply power to other componentsin the terminal.

In an embodiment of this application, the processor in the mainboard 110may generate a virtual scene by executing or invoking the program codeand data stored in the memory, and present the generated virtual sceneby using the external output/input device 120. In a process ofpresenting the virtual scene, a touch operation performed when the userinteracts with the virtual scene may be detected by using the capacitivetouch system 150.

The virtual scene may be a three-dimensional virtual scene, or thevirtual scene may be a two-dimensional virtual scene. Using an examplein which the virtual scene is a three-dimensional virtual scene, FIG. 2is a schematic diagram of a scene picture of a virtual scene accordingto an exemplary embodiment of this application. As shown in FIG. 2, ascene picture 200 of the virtual scene includes a virtual object 210, anenvironment picture 220 of the three-dimensional virtual scene, and avirtual object 240. The virtual object 210 may be a current virtualobject of a user corresponding to a terminal, and the virtual object 240may be a virtual object controlled by a user corresponding to anotherterminal. The user may control the virtual object 210 to interact withthe virtual object 240, for example, control the virtual object 210 toattack the virtual object 240.

In FIG. 2, the virtual object 210 and the virtual object 240 arethree-dimensional models in the three-dimensional virtual scene, and theenvironment picture of the three-dimensional virtual scene displayed inthe scene picture 200 includes things observed from a viewing angle ofthe virtual object 210. For example, as shown in FIG. 2, under theobservation from the viewing angle of the virtual object 210, thedisplayed environment picture 220 of the three-dimensional virtual sceneincludes the earth 224, the sky 225, the horizon 223, a hill 221, and afactory 222.

The virtual object 210 may move instantly under the control of the user.For example, the user may control the virtual object 210 to move in thevirtual scene through an input device such as a keyboard, a mouse, or agamepad (for example, using an example in which the virtual object 210is controlled, through a keyboard and a mouse, to move, the user maycontrol, through four keys, namely, the W, A, S, and D keys, in thekeyboard, the virtual object to move back and forth and left and rightand control, through the mouse, a direction that the virtual object 210faces); alternatively, if a screen of the terminal supports a touchoperation, and the scene picture 200 of the virtual scene includes avirtual control button, when the user touches the virtual controlbutton, the virtual object 210 may move toward a direction of a touchpoint relative to a center of the virtual control button in the virtualscene.

FIG. 3 is a schematic diagram of a procedure for displaying a markerelement in a virtual scene according to an exemplary embodiment of thisapplication. As shown in FIG. 3, a terminal (for example, the terminalshown in FIG. 1b ) running the application program corresponding to theforegoing virtual scene may perform the following steps to display amarker element corresponding to a target virtual item in a virtualscene.

Step 31. Obtain marker indication information used for indicating atarget virtual item, the target virtual item being a virtual item markedby a user of the terminal corresponding to a user account in the virtualscene for user accounts in the same team to view. Before obtaining themarker indication information, the terminal first renders a displayinterface of a virtual scene, the virtual scene including a pluralityvirtual items and the plurality of virtual items include the targetvirtual item. The marker indication information is obtained in responseto a user input through the input/output device of the terminal.

The user account may be one of an account controlling a current virtualobject or an account controlling another virtual object in the same teamin the virtual scene.

In this embodiment of this application, the current virtual object is avirtual object currently controlled by a user account logged in to bythe terminal executing this solution. For example, using an example inwhich the virtual scene is a shooting game scene, the current virtualobject may be a virtual soldier located in the game scene andcontrolled, through a current terminal, by a user corresponding to theterminal.

The target virtual item may be any virtual item allowed to be marked inthe virtual scene. For example, the target virtual item may be a sceneobject in the virtual scene. For example, the scene object may be aground, a wall, a building, a rock, or a tree. Alternatively, the targetvirtual item may be a virtual prop in the virtual scene. For example,the virtual prop may be virtual equipment, a virtual vehicle, or thelike. Alternatively, the target virtual item may be a virtual charactercontrolled by another player in the virtual scene. For example, thevirtual character may be a virtual soldier controlled by an enemy playeror a friend player. Alternatively, the target virtual item may be avirtual item controlled by artificial intelligence (AI) in the virtualscene. For example, the virtual item controlled by the AI may be anon-player character (NPC), a monster, or the like in the virtual scene.

Step 32. Obtain graphic data of a marker element according to the markerindication information.

The marker element is a graphic element used for indicating a locationof the target virtual item in the virtual scene to the user accounts inthe same team.

Step 33. Obtain the marker element through rendering according to thegraphic data.

Step 34. Display the marker element at a designated location around thetarget virtual item in a display interface of the virtual scene.

The display interface of the virtual scene may be used for displaying apicture of the virtual scene observed from a viewing angle directioncorresponding to a current virtual object. The viewing angle directionmay be a direction in which a virtual object is observed through acamera model in a virtual environment.

Optionally, the camera model automatically follows the virtual object inthe virtual environment. That is, when a location of the virtual objectin the virtual environment changes, a location of the camera modelfollowing the virtual object in the virtual environment changessimultaneously, and the camera model is always within a preset distancerange of the virtual object in the virtual environment. Optionally, inan automatic following process, relative locations of the camera modeland the virtual object remains unchanged.

Using an example in which the virtual scene is a three-dimensionalvirtual scene, the camera model is a three-dimensional model locatedaround a virtual object in a virtual environment. When a first-personviewing angle is used, the camera model is located near or at the headof the virtual object. When a third-person viewing angle is used, thecamera model may be located behind the virtual object and bound to thevirtual object, or may be located at any location away from the virtualobject by a preset distance. The virtual object located in thethree-dimensional virtual environment may be observed from differentangles through the camera model. Optionally, when the third-personviewing angle is a first-person over-shoulder viewing angle, the cameramodel is located behind the virtual object (for example, the head andthe shoulders of the virtual character). For example, in the virtualscene shown in FIG. 2, the scene picture 200 is a picture of the virtualscene observed from the third-person viewing angle of the virtual object210. Optionally, the camera model is not actually displayed in thethree-dimensional virtual environment, that is, the camera model cannotbe recognized in the three-dimensional virtual environment displayed inthe user interface.

Description is made by using an example in which the camera model islocated at any location away from the virtual object by a presetdistance. Optionally, one virtual object corresponds to one cameramodel, and the camera model may rotate with the virtual object as arotation center, for example, the camera model is rotated with any pointof the virtual object as the rotation center. During rotation, thecamera model is not only rotated, but also displaced. During rotation, adistance between the camera model and the rotation center remainsunchanged, that is, the camera model is rotated on a surface of a spherewith the rotation center as a sphere center. Any point of the virtualobject may be the head or the torso of the virtual object, or any pointaround the virtual object. This is not limited in the embodiments ofthis application. Optionally, when the camera model observes the virtualobject, the viewing angle direction of the camera model is a directionin which a vertical line on a tangent plane of a spherical surface onwhich the camera model is located points to the virtual object.

Optionally, the camera model may alternatively observe the virtualobject at a preset angle in different directions of the virtual object.

Through the solution shown in FIG. 3, when a user account controlling acurrent virtual object or a user account controlling another virtualobject in the same team marks a target virtual item in a virtual scenefor user accounts in the same team to view, terminals corresponding tothe user accounts in the same team may display a marker element of thetarget virtual item around the target virtual item in display interfacesof virtual scenes presented by the terminals. That is, in the solutionshown in this application, a marker element of a virtual item marked bythe user or a teammate is directly displayed in the display interface ofthe virtual scene, and there is no need for the user to open a specificinterface, so that the marker element of the virtual object is displayedmore directly without affecting other operations of the user in thevirtual scene, thereby improving a display effect of the marker element.

In this embodiment of this application, the terminal may render anddisplay the marker element in a case that the target virtual item islocated within a visible distance of the current virtual object.

In a possible implementation, the visible distance of the currentvirtual object may be a specific preset distance (for example, 500 m)around the current virtual object. To be specific, provided that thedistance between the target virtual item and the current virtual objectis less than 500 m, the marker element of the target virtual item may bedisplayed in a virtual scene generated by the terminal. The presetdistance may be a distance preset by developers or operation andmaintenance personnel.

For example, FIG. 4 is a schematic display diagram of a marker elementincluded in an embodiment of this application. As shown in FIG. 4, usingan example in which a visible distance of the current virtual object is500 m, a virtual scene 40 displayed by a terminal includes a currentvirtual object 41, a target virtual item 42, a target virtual item 43,and a target virtual item 44. A distance between the target virtual item42 and the current virtual object 41 and a distance between the targetvirtual item 43 and the current virtual object 41 are less than 500 m,but a distance between the target virtual item 44 and the currentvirtual object 41 is greater than 500 m, and the target virtual item 42is obscured by a house 45. In this case, the terminal may display amarker element 42 a corresponding to the target virtual item 42, anddisplay a marker element 43 a corresponding to the target virtual item43 without displaying a marker element corresponding to the targetvirtual item 44. The marker element 42 a of the obscured target virtualitem 42 may be displayed by highlighting an outline.

Alternatively, in another possible implementation, the visible distanceof the current virtual object may be a specific preset distance (forexample, 500 m) in an observable picture around the current virtualobject. To be specific, provided that the distance between the targetvirtual item and the current virtual object is less than 500 m, and thetarget virtual item can be observed directly in the display interface,the marker element of the target virtual item can be displayed in avirtual scene generated by the terminal.

For example, FIG. 5 is a schematic display diagram of another markerelement included in an embodiment of this application. As shown in FIG.5, using an example in which a visible distance of the current virtualobject is 500 m that can be observed directly, a virtual scene 50displayed by a terminal includes a current virtual object 51, a targetvirtual item 52, a target virtual item 53, and a target virtual item 54.A distance between the target virtual item 52 and the current virtualobject 51 and a distance between the target virtual item 53 and thecurrent virtual object 51 are less than 500 m, but a distance betweenthe target virtual item 54 and the current virtual object 51 is greaterthan 500 m, and the target virtual item 52 is obscured by a house 55. Inthis case, the terminal may display a marker element 53 a correspondingto the target virtual item 53 without displaying marker elementscorresponding to the target virtual item 52 and the target virtual item54.

In a possible implementation, the terminal may only display a markerelement of a virtual item that is located within the visible distance ofthe current virtual object and a duration of being marked is less than apreset duration. When a duration in which a virtual item is marked isgreater than a preset duration (for example, 1 minute), the terminal mayremove a marker element corresponding to the virtual item from the scenepicture.

Optionally, in the embodiments of the present disclosure, the terminalmay further obtain distance information (the distance information isused for indicating a distance between the target virtual item and thecurrent virtual object), and display the distance information at adesignated location around the marker element in the display interface.

From the perspective of displayed content of an interface of a terminal,according to the solution shown in FIG. 3, the terminal may display adisplay interface of a virtual scene, and control a motion of thecurrent virtual object in the virtual scene, for example, at least oneof movement and rotation; when there is a target virtual item in thedisplay interface, the terminal displays a marker element at adesignated location around the target virtual item in the displayinterface. Optionally, the terminal may further display distanceinformation at a designated location around the marker element in thedisplay interface.

In the solution shown in FIG. 3, the target virtual item may be avirtual object marked by a user corresponding to a user accountcontrolling a current virtual object. Alternatively, the target virtualitem may be a virtual object marked by a user (that is, a teammate)corresponding to a user account controlling another virtual object inthe same team in the virtual scene. To be specific, when a user is in ateam mode, a virtual item marked by the user in a virtual scene may beshared with terminals of teammates for display of a marker element.

In a possible implementation, after a user marks a virtual item througha terminal, a server may synchronize a situation of the marking with aterminal corresponding to another user account in the same team. Whensynchronizing a marker, the server may receive a marking requestincluding an identifier of a target virtual item, and determine a targetterminal in terminals corresponding to user accounts in the same team,the target virtual item being located within a visible distance of avirtual object controlled by a user account corresponding to the targetterminal; then, a server transmits marker indication information to thetarget terminal to instruct the target terminal to obtain graphic dataof a marker element, obtain the marker element through renderingaccording to the graphic data, and display the marker element at adesignated location around the target virtual item in a displayinterface of a virtual scene.

FIG. 6 is a flowchart of a method for displaying a marker element in avirtual scene according to an exemplary embodiment of this application.Using an example in which a virtual object marked by a user issynchronized in a team mode to terminals corresponding to users in thesame team for display of a marker element in a three-dimensional virtualscene, as shown in FIG. 6, the method for displaying a marker element ina virtual scene may include the following steps.

Step 601. A first terminal displays a first display interface.

The first display interface may display a picture of a virtual sceneobserved from a viewing angle direction corresponding to a first virtualobject. The first virtual object is a current virtual objectcorresponding to the first terminal.

Step 602. The first terminal determines a virtual item corresponding toa marking operation as a target virtual item in response to receivingthe marking operation.

In a possible implementation, the first terminal may display a crosshairicon in a first display interface, the crosshair icon being used forindicating a direction that a current virtual object corresponding tothe first terminal faces; when receiving the marking operation, thefirst terminal may determine a virtual item targeted by the crosshairicon as the target virtual item.

For example, FIG. 7 is a schematic diagram of a marking operationincluded in an embodiment of this application. As shown in FIG. 7, avirtual scene 70 displayed by a terminal includes a current virtualobject 71 and a crosshair icon 72 corresponding to the current virtualobject 71, the crosshair icon 72 indicating a direction that the currentvirtual object 71 faces. In a shooting game scene, the crosshair icon 72may alternatively indicate a direction targeted by a weapon held by thecurrent virtual object 71, and when a user wants to mark a virtualobject, for example, mark a ground, the user may adjust a viewing angleof a character to enable the crosshair icon 72 to aim at the ground, andperform a shortcut operation (that is, the marking operation), forexample, press a Q shortcut key, so that the first terminal receives themarking operation of the user on the ground.

In a possible implementation, the first terminal may alternativelypresent a marker type selection interface when receiving the markingoperation, the marker type selection interface including at least twomarker options, each marker option corresponding to one marker type; anddetermine a target marker type when receiving a selection operationperformed in the marker type selection interface, the target marker typebeing a marker type of a marker option corresponding to the selectionoperation.

In this embodiment of this application, a person that performs markingmay alternatively select a type of a marker element of a target virtualitem, for example, may select a color, a shape, and the like of themarker element of the target virtual item. For example, FIG. 8 is aschematic diagram of selection of a marker element type included in anembodiment of this application. As shown in FIG. 8, in a virtual scene80 displayed by a terminal, after a user performs a marking operation(for example, presses a Q shortcut key), the terminal displays a markertype selection interface 81 on an upper layer of the virtual scene 80,the marker type selection interface 81 includes several marker options,each marker option corresponding to one type of a marker element. Forexample, in FIG. 8, marker options included in the marker type selectioninterface 81 may include an option corresponding to a marker element ina shape of a gun, an option corresponding to a marker element in a shapeof a hand grenade, an option corresponding to a marker element in ashape of a dagger, and the like. The user selects, through a selectionoperation, for example, clicking with a mouse, tapping, or pressing ashortcut key (for example, pressing a number key, or switching through aTab key while pressing and holding a Q key), or another operation, atype of a marker element that needs to be set. After receiving theselection operation of the user, the terminal determines a typecorresponding to the selection operation is a shape type (that is, thetarget marker type) of a target virtual item.

Step 603. The first terminal transmits a marking request to a server,the marking request including an identifier of the target virtual item.

After receiving the marking operation, the first terminal may transmit arequest including the identifier of the target virtual item to theserver, the identifier of the target virtual item may be a uniqueidentity (ID) of the target virtual item in a virtual scene.Alternatively, the identifier of the target virtual item may becoordinates of the target virtual item in the current virtual scene. Aspecific form of the identifier of the target virtual item is notlimited in the embodiments of this application.

Optionally, a user corresponding to the first terminal further selects atarget marker type of the target virtual item when marking the virtualobject, and the first terminal may transmit the marking requestincluding the identifier the target virtual item and the target markertype to the server.

Step 604. The server detects whether a distance between the targetvirtual item and a current virtual object is less than a visibledistance of the current virtual object.

The server may detect whether a distance between the target virtual itemand a first virtual object (that is, a current controlled objectcorresponding to the first terminal) is less than a visible distance ofthe first virtual object, and detect whether a distance between thetarget virtual item and a second virtual object (that is, a currentcontrolled object corresponding to the second terminal) is less than avisible distance of the second virtual object.

In this embodiment of this application, the second terminal may be aterminal used by a friend user (for example, a teammate) of a usercorresponding to the first terminal. When receiving the marking requesttransmitted by the first terminal, the server may first obtaincoordinates of the first virtual object in the virtual scene andcoordinates of the target virtual item in the virtual scene, andcalculate a distance between the first virtual object and the targetvirtual item in the virtual scene according to the coordinates of thetwo. After calculating the distance between the first virtual object andthe target virtual item in the virtual scene, the server furthercompares the distance between the first virtual object and the targetvirtual item in the virtual scene with the visible distance of the firstvirtual object, to detect whether the distance between the first virtualobject and the target virtual item is less than the visible distance ofthe first virtual object.

In addition, the server may detect whether a virtual object (that is,the second virtual object) currently controlled by a teammate of theuser corresponding to the first terminal is alive, and if the secondvirtual object is alive, the server further obtains coordinates of theliving second virtual object in the virtual scene, and calculates adistance between the second virtual object and the target virtual itemin the virtual scene. After calculating the distance between the secondvirtual object and the target virtual item in the virtual scene, theserver further compares the distance between the second virtual objectand the target virtual item in the virtual scene with the visibledistance of the second virtual object, to detect whether the distancebetween the second virtual object and the target virtual item is lessthan the visible distance of the second virtual object.

A distance between the target virtual item and a current virtual objectof the first terminal or a distance between the target virtual item anda current virtual object of the second terminal may be a straight-linedistance (or may be referred to as a space distance or athree-dimensional space distance) in the virtual scene. For example,FIG. 9 is a schematic diagram of calculation of a straight-line distanceincluded in an embodiment of this application. As shown in FIG. 9,assuming that coordinates of a current virtual object in the virtualscene is (x₁, y₁, z₁) and coordinates of a target virtual item in thevirtual scene is (x₂, y₂, z₂), in the virtual scene, a distance betweenthe current virtual object and the target virtual item may berepresented as:d=√{square root over ((x ₁ −x ₂)²+(y ₁ −y ₂)²+(z ₁ −z ₂)²)}d=√{square root over ((x ₁ −x ₂)²+(y ₁ −y ₂)²+(z ₁ −z ₂)²)}

where a unit of d may be meter (m).

Through the foregoing step 604, the server may determine a targetterminal from terminals corresponding to user accounts in the same team.For example, an example in which the terminals corresponding to the useraccounts in the same team include the foregoing first terminal and thesecond terminal is used. If the target virtual item is located within avisible distance of a current virtual object corresponding to the firstterminal, the first terminal is the target terminal; if the targetvirtual item is less than a visible distance of a current virtual objectcorresponding to the second terminal, the second terminal is the targetterminal; if the target virtual item is located within both the visibledistance of the current virtual object corresponding to the firstterminal and the visible distance of the current virtual objectcorresponding to the second terminal, both the first terminal and thesecond terminal are the target terminals.

Step 605. The server transmits marker indication information to acorresponding terminal in a case that the target virtual item isdetected to be located within the visible distance of the currentvirtual object, the first terminal and/or the second terminal receivingthe marker indication information.

The marker indication information is used for indicating the targetvirtual item.

The server may transmit the marker indication information to a targetterminal in the first terminal and the second terminal. For example,when the distance between the target virtual item and the first virtualobject is detected to be less than the visible distance of the firstvirtual object, the server may transmit first marker indicationinformation to the first terminal. Correspondingly, when the distancebetween the target virtual item and the second virtual object is lessthan the visible distance of the second virtual object, the server maytransmit second marker indication information to the second terminal.Correspondingly, the first terminal/the second terminal (that is, theforegoing target terminal) receives the foregoing marker indicationinformation transmitted by the server.

Optionally, when the marking request transmitted by the first terminalto the server includes a target marker type of the target virtual item,the server may transmit marker indication information including thetarget marker type to the target terminal.

Alternatively, the server may transmit the target marker type to thetarget terminal through indication information in addition to the markerindication information.

Optionally, the server may transmit only the target marker type to thesecond terminal. That is, the foregoing second marker indicationinformation includes the target marker type, while the foregoing firstmarker indication information may not include the target marker type.

Step 606. The first terminal/the second terminal obtains graphic data ofa marker element according to the marker indication information.

The marker element is a graphic element used for indicating a locationof the target virtual item in the virtual scene to the user accounts inthe same team.

Optionally, when the marker indication information includes the targetmarker type, after receiving the marker indication information, thefirst terminal/the second terminal may obtain graphic data of a markerelement according to the target marker type.

For example, if a user corresponding to the first terminal selects theoption corresponding to the marker element in a shape of a gun in theinterface shown in FIG. 8, in this step, the first terminal and/or thesecond terminal may obtain a marker element in a shape of a guncorrespondingly.

Optionally, the foregoing marker indication information may furtherinclude object indication information, the object indication informationbeing used for indicating a virtual object (that is, the foregoing firstvirtual object) controlled by a user account corresponding to a terminal(that is, the foregoing first terminal) marking the target virtual item;and the first terminal/the second terminal may obtain graphic datacorresponding to the virtual object indicated by the object indicationinformation.

In this embodiment of this application, for target virtual items markedby different users in the same team, the terminals may display differentmarker elements. For example, in a possible implementation, markerelements of target virtual items marked by different users in the sameteam may be distinguished through different colors, so that the userscan quickly distinguish a specific teammate that marks the targetvirtual item.

Step 607. The first terminal and/or the second terminal obtain(s) themarker element through rendering according to the foregoing graphicdata.

The first terminal and/or the second terminal may perform renderinglocally according to the obtained graphic data respectively to obtain amarker element corresponding to the target virtual item.

Step 608. The first terminal and/or the second terminal display(s) themarker element at a designated location around the target virtual itemin a display interface of the virtual scene.

In this embodiment of this application, after obtaining the markerelement corresponding to the target virtual item through rendering, thefirst terminal and/or the second terminal may display the marker elementat a location of the target virtual item correspondingly in the virtualscene, for example, may display the marker element at a location abovethe target virtual item and near the target virtual item.

Step 609. The first terminal and/or the second terminal obtain(s)distance information.

The distance information is used for indicating a distance between thetarget virtual item and the current virtual object.

In this embodiment of this application, the distance information may betransmitted to the first terminal and/or the second terminal through theserver. For example, in the foregoing step 604, when the server detectswhether the target virtual item is located within the visible distanceof the current virtual object corresponding to the first terminal andthe visible distance of the current virtual object corresponding to thesecond terminal, a distance between the target virtual item and thecurrent virtual object corresponding to the first terminal and adistance between the target virtual item and the current virtual objectcorresponding to the second terminal need to be calculated. In step 605,when the server detects that the target virtual item is located within avisible distance of a current virtual object of a terminal, a markerelement display instruction transmitted by the server to thecorresponding terminal may carry information about a distance betweenthe target virtual item and the corresponding terminal, and thecorresponding terminal may obtain the distance information from themarker element display instruction.

Alternatively, in another possible implementation, when obtainingdistance information, the first terminal and/or the second terminal mayalternatively obtain coordinates of the target virtual item in thevirtual scene autonomously, and locally calculate information about adistance between the current virtual object and the target virtual itemaccording to the coordinates of the current virtual object and thecoordinates of the target virtual item in the virtual scene.

Step 610. The first terminal and/or the second terminal display(s) thedistance information at a designated location around the marker elementin the display interface of the virtual scene.

The first terminal displays the information about a distance between thefirst virtual object and the target virtual item corresponding to themarker element in the first display interface. Correspondingly, thesecond terminal displays the information about a distance between thesecond virtual object and the target virtual item corresponding to themarker element in a second display interface. The second displayinterface may display a picture of a virtual scene observed from aviewing angle direction corresponding to the second virtual object.

In this embodiment of this application, the first terminal and/or thesecond terminal may display the distance information at a designatedlocation around the marker element. For example, the first terminaland/or the second terminal may display the distance information as adocument at a designated location around the marker element of thetarget virtual item.

The designated location around the marker element may be tightly next tothe left, the right, the top, or the bottom of the marker element.

For example, FIG. 10 is a schematic display diagram of distanceinformation included in an embodiment of this application. As shown inFIG. 10, a virtual scene 100 displayed by a terminal includes a currentvirtual object 1001, and a marker element 1002 (that is, an invertedtriangular icon in FIG. 10) of the virtual object. A display box 1003 isfurther displayed on the top and tightly next to the marker element1002, and value text (which is 85 m shown in FIG. 10) of a distancebetween a virtual object corresponding to the marker element 1002 andthe current virtual object 1001 is displayed in the display box 1003.

In another possible implementation, in a case that the terminal displaysdistance information corresponding to the marker element, the distanceinformation may be displayed at a designated location around the markerelement in a graph form in a scene picture of the virtual scene.

For example, FIG. 11 is a schematic display diagram of another type ofdistance information included in an embodiment of this application. Asshown in FIG. 11, a virtual scene 110 displayed by a terminal includes acurrent virtual object 1101, and a marker element 1102 (that is, aninverted triangular icon in FIG. 11) of the virtual object. A distanceindication graph 1103 is further displayed on the right and tightly nextto the marker element 1002, the distance indication graph 1103 is formedby one or more horizontal bars, and a quantity of the horizontal bars inthe distance indication graph 1103 indicates a distance between acorresponding virtual object and the current virtual object 1101. Forexample, a larger quantity of the horizontal bars in the distanceindication graph 1103 indicates a larger distance between the virtualobject and the current virtual object 1101.

Optionally, the distance information includes at least one type of thefollowing information: a straight-line distance between the targetvirtual item and the current virtual object; a horizontal distancebetween the target virtual item and the current virtual object; and aheight difference between the target virtual item and the currentvirtual object.

In this embodiment of this application, in a case that the virtual sceneis a three-dimensional virtual scene, the distance between the targetvirtual item and the current virtual object displayed by the terminalmay be a horizontal distance, a three-dimensional space distance, aheight difference, or any two or all of the foregoing three. Forexample, in FIG. 10, a distance value displayed in the display box 1003may be the horizontal distance between the target virtual item and thecurrent virtual object, or may be the three-dimensional space distancebetween the target virtual item and the current virtual object.

For example, FIG. 12 is a schematic display diagram of still anothertype of distance information included in an embodiment of thisapplication. An example in which the distance between the target virtualitem and the current virtual object displayed by the terminal is thehorizontal distance and the height difference is used. As shown in FIG.12, a virtual scene 120 displayed by a terminal includes a currentvirtual object 1201 and a marker element 1202 (that is, an invertedtriangular icon in FIG. 12) of the virtual object. A display box 1203 isfurther displayed on the top and tightly next to the marker element1202, and value text 1203 a (which is 85 m shown in FIG. 12) of ahorizontal distance between a virtual object corresponding to the markerelement 1202 and the current virtual object 1201 and value text 1203 b(which is +5 m shown in FIG. 12, where “+” represents that a height ofthe virtual object corresponding to the marker element 1202 is higherthan a height of the current virtual object 1201, and correspondingly,if the height of the virtual object corresponding to the marker element1202 is lower than the height of the current virtual object 1201, asymbol of the value text 1203 b may be “−”) of a height differencebetween the virtual object corresponding to the marker element 1202 andthe current virtual object 1201 are displayed in the display box 1203.

Optionally, in this embodiment of this application, the displayinterface further includes a thumbnail map of the virtual scene; and thefirst terminal and/or the second terminal further display(s) a markericon of the target virtual item in the thumbnail map corresponding to alocation of the target virtual item in the thumbnail map of the virtualscene.

For example, in FIG. 10, the virtual scene 100 displayed by the terminalfurther includes a thumbnail map 1004, the thumbnail map 1004 includingan icon 1004 a corresponding to the current virtual object 1001 and amarker icon 1004 b of the target virtual item.

Optionally, in this embodiment of this application, in a case that atiming duration of a first timer reaches a first preset duration, theserver may transmit marker cancellation information to the firstterminal and/or the second terminal (that is, a target terminal) thatreceive(s) the marker indication information before; and the first timeris a timer started at a moment at which the target virtual item ismarked and having the first preset duration as a timing duration. Afterreceiving the marker cancellation information, the first terminal and/orthe second terminal may remove a corresponding marker element from thedisplay interface of the virtual scene.

Alternatively, in another possible implementation, the target terminalmay remove the marker element from the display interface of the virtualscene in a case that a timing duration of a second timer reaches asecond preset duration; and the second timer is a timer started at amoment at which the marker element is displayed by the target terminaland having the second preset duration as a timing duration.

For example, in this embodiment of this application, after receiving themarker indication information transmitted by the server and displayingthe marker element according to the marker indication information, thefirst terminal and/or the second terminal start(s) a timer to starttiming, and cancels display of the marker element when the timingduration reaches a specific duration (for example, 2 min).

The timer started by the terminal may be started by the terminal througha notification of the server. For example, the marker indicationinformation may carry the second preset duration, and after receivingthe marker indication information and displaying the marker element, theterminal starts the timer according to the second preset duration.

The first preset duration or the second preset duration may be aduration preset in a system by developers or operation and maintenancepersonnel. Alternatively, the first preset duration or the second presetduration may be a duration set by a person marking the target virtualitem.

To sum up, according to the solution shown in the embodiments of thisapplication, in a virtual scene, when a terminal of a user accountcontrolling a current virtual object or a terminal of a user accountcontrolling another virtual object in the same team marks a targetvirtual item in the virtual scene for user accounts in the same team toview, terminals corresponding to the user accounts in the same team maydisplay a marker element of the target virtual item around the targetvirtual item in display interfaces of virtual scenes presented by theterminals. That is, in the solution shown in this application, a markerelement of a virtual item marked by the user or a teammate is directlydisplayed in the display interface of the virtual scene, and there is noneed for the user to open a specific interface, so that the markerelement of the virtual object is displayed more directly withoutaffecting other operations of the user in the virtual scene, therebyimproving a display effect of the marker element.

An example in which the solution shown in FIG. 3 or FIG. 6 is applied toa specific game scene is used. FIG. 13 is a flowchart of displaying amarker element according to an exemplary embodiment of this application.As shown in FIG. 13, in a shooting battle arena game scene, after anyplayer in a battle uses a marking function, a terminal of the playertransmits an identifier of a marked object (that is, a target virtualitem) corresponding to the marking function to a server, the servercalculates a three-dimensional distance between the marked object and agame character of the player according to the identifier of the markedobject, determines whether the three-dimensional distance is less avisible distance of the game character of the player, and if yes,instructs the terminal of the player to display a marker icon of amarker element of the marked object in a scene picture and a map userinterface (UI) of the virtual scene. In addition, the server furthercalculates a three-dimensional distance between the marked object and afriend unit (that is, a game character of a teammate of the player),determines whether the three-dimensional distance is less than a visibledistance of the friend unit, and if yes, synchronizes the marker elementto the friend unit, to be specific, instructs a terminal correspondingto the friend unit to display the marker icon of the marker element ofthe marked object in the scene picture and the map UI of the virtualscene. Then, the server periodically determines whether a duration ofthe marker element is not less than a maximum marking duration, if theduration of the marker element is determined to be not less than themaximum marking duration, the server instructs each terminal to canceldisplay of the marker element. Otherwise, if the duration of the markerelement is determined to be less than the maximum marking duration, theterminal is allowed to display the marker element.

It is to be understood that, although steps in the flowcharts of FIG. 3or FIG. 6 are displayed sequentially according to indications of arrows,the steps are not necessarily performed according to an order indicatedby the arrows. Unless explicitly specified in this application, thesequence of the steps is not strictly limited, and the steps may beperformed in other sequences. In addition, at least some steps in FIG. 3or FIG. 6 may include a plurality of substeps or a plurality of stages.The substeps or the stages are not necessarily performed at the samemoment, and instead may be performed at different moments. The substepsor the stages is not necessarily performed sequentially, and instead maybe performed in turn or alternately with another step or at least someof substeps or stages of another step.

FIG. 14 is a schematic block diagram of an apparatus for displaying amarker element in a virtual scene according to an exemplary embodimentof this application. The apparatus for displaying a marker element in avirtual scene may be used in a terminal to perform all or some stepsperformed by a terminal in the method shown in the embodimentcorresponding to FIG. 3 or FIG. 6. The apparatus for displaying a markerelement in a virtual scene may include:

an indication information obtaining module 1401, configured to obtainmarker indication information used for indicating a target virtual item,the target virtual item being a virtual item marked by a terminalcorresponding to a user account in the virtual scene for user accountsin the same team to view, the user account being an account controllinga current virtual object or an account controlling another virtualobject in the same team in the virtual scene;

a graphic data obtaining module 1402, configured to obtain graphic dataof a marker element according to the marker indication information, themarker element being a graphic element used for indicating a location ofthe target virtual item in the virtual scene to the user accounts in thesame team;

a rendering module 1403, configured to obtain the marker element throughrendering according to the graphic data; and

a marker element display module 1404, configured to display the markerelement at a designated location around the target virtual item in adisplay interface of the virtual scene.

Optionally, the apparatus further includes:

a distance information obtaining module, configured to obtain distanceinformation, the distance information being used for indicating adistance between the target virtual item and the current virtual object;and

a distance information display module, configured to display thedistance information at a designated location around the marker elementin the display interface.

Optionally, the distance information includes at least one type of thefollowing information:

a straight-line distance between the target virtual item and the currentvirtual object;

a horizontal distance between the target virtual item and the currentvirtual object; and

a height difference between the target virtual item and the currentvirtual object.

Optionally, the apparatus further includes:

a marker icon display module, configured to display a marker icon of thetarget virtual item in a thumbnail map corresponding to a location ofthe target virtual item in the thumbnail map.

Optionally, the indication information obtaining module 1401 isspecifically configured to receive the marker indication informationtransmitted by a server in a case that the target virtual item isdetected to be located within a visible distance of the current virtualobject.

Optionally, the apparatus further includes:

a crosshair icon display module, configured to display a crosshair iconin the display interface, the crosshair icon being used for indicating adirection that the current virtual object faces;

an object determining module, configured to determine a virtual itemtargeted by the crosshair icon as the target virtual item in a case thata marking operation is received and the user account is an accountcontrolling the current virtual object in the virtual scene; and

a request transmitting module, configured to transmit a marking requestto the server, the marking request including an identifier of the targetvirtual item.

Optionally, the apparatus further includes:

an interface display module, configured to present a marker typeselection interface in a case that the marking operation is received,the marker type selection interface including at least two markeroptions, each marker option corresponding to one marker type; and

a type determining module, configured to determine a target marker typein a case that a selection operation performed in the marker typeselection interface is received, the target marker type being a markertype of a marker option corresponding to the selection operation,

the request transmitting module being specifically configured totransmit the marking request including the identifier of the targetvirtual item and the target marker type to the server.

Optionally, the marker indication information includes a target markertype.

The graphic data obtaining module 1402 is specifically configured toobtain the graphic data of the marker element according to the targetmarker type.

Optionally, the marker indication information includes object indicationinformation, the object indication information being used for indicatinga virtual object controlled by the user account corresponding to theterminal marking the target virtual item.

The graphic data obtaining module 1402 is specifically configured toobtain the graphic data corresponding to the virtual object indicated bythe object indication information.

Optionally, the apparatus further includes:

a cancellation information receiving module, configured to receivemarker cancellation information, the marker cancellation informationbeing information transmitted by the server after a timing duration of afirst timer reaches a first preset duration, the first timer beingstarted at a moment at which the target virtual item is marked; and

a first removing module, configured to remove the marker element fromthe display interface.

Optionally, the apparatus further includes:

a second removing module, configured to remove the marker element fromthe display interface of the virtual scene in a case that a timingduration of a second timer reaches a second preset duration, the secondtimer being started at a moment at which the marker element isdisplayed.

FIG. 15 is a structural block diagram of a computer device 1500according to an exemplary embodiment. The computer device 1500 may be auser terminal, such as a smartphone, a tablet computer, a moving pictureexperts group audio layer III (MP3) player, a moving picture expertsgroup audio layer IV (MP4) player, a notebook computer, or a desktopcomputer. The computer device 1500 may be further referred to as anothername such as user equipment, a portable terminal, a laptop terminal, ora desktop terminal.

Generally, the computer device 1500 includes a processor 1501 and amemory 1502. The memory stores at least one instruction, at least oneprogram, a code set, or an instruction set, the at least oneinstruction, the at least one program, the code set, or the instructionset being loaded and executed by a processor to implement all or somesteps in the method for displaying a marker element in a virtual sceneshown in the embodiment corresponding to FIG. 3 or FIG. 6.

The processor 1501 may include one or more processing cores, forexample, may be a 4-core processor or an 8-core processor. The processor1501 may be implemented in at least one hardware form of digital signalprocessing (DSP), a field-programmable gate array (FPGA), and aprogrammable logic array (PLA). The processor 1501 may also include amain processor and a coprocessor. The main processor is a processorconfigured to process data in an awake state, and is also referred to asa central processing unit (CPU). The coprocessor is a low powerconsumption processor configured to process data in a standby state. Insome embodiments, the processor 1501 may be integrated with a graphicsprocessing unit (GPU). The GPU is configured to be responsible forrendering and depicting content that a display screen needs to display.In some embodiments, the processor 1501 may further include anartificial intelligence (AI) processor. The AI processor is configuredto process a calculation operation related to machine learning.

The memory 1502 may include one or more computer-readable storage media.The computer-readable storage medium may be non-transient. The memory1502 may further include a high-speed random access memory, and anon-volatile memory such as one or more magnetic disk storage devicesand a flash storage device. In some embodiments, the non-transientcomputer-readable storage medium in the memory 1502 is configured tostore at least one instruction, the at least one instruction beingexecuted by the processor 1501 to implement the method for displaying amarker element in a virtual scene provided in the method embodiment ofthis application.

In some embodiments, the computer device 1500 further optionallyincludes a peripheral device interface 1503 and at least one peripheraldevice. The processor 1501, the memory 1502 and the peripheral deviceinterface 1503 may be connected by a bus or a signal line. Eachperipheral device may be connected to the peripheral device interface1503 by the bus, the signal line, or a circuit board. Specifically, theperipheral device includes: at least one of a radio frequency (RF)circuit 1504, a touch display screen 1505, a camera component 1506, anaudio circuit 1507, a positioning component 1508, and a power supply1509.

In some embodiments, the computer device 1500 further includes one ormore sensors 1510. The one or more sensors 1510 include, but are notlimited to, an acceleration sensor 1511, a gyroscope sensor 1512, apressure sensor 1513, a fingerprint sensor 1514, an optical sensor 1515,and a proximity sensor 1516.

A person skilled in the art may understand that a structure shown inFIG. 15 constitutes no limitation on the computer device 1500, and thecomputer device may include more or fewer components than those shown inthe figure, or some components may be combined, or a different componentdeployment may be used.

In an exemplary embodiment, a non-temporary computer-readable storagemedium including an instruction is further provided, for example, amemory includes at least one instruction, at least one program, a codeset, or an instruction set. The at least one instruction, the at leastone program, the code set, or the instruction set may be executed by aprocessor to implement all or some steps in the method for displaying amarker element in a virtual scene shown in the embodiment correspondingto FIG. 3 or FIG. 6.

A person of ordinary skill in the art may understand that all or some ofthe procedures of the methods in the foregoing embodiments may beimplemented by instructing relevant hardware. The program may be storedin a non-volatile computer-readable storage medium. When the program isexecuted, the procedures of the foregoing method embodiments may beincluded. Any reference to a memory, a storage, a database, or anothermedium used in the embodiments provided in this application may includea non-volatile and/or volatile memory. The non-volatile memory mayinclude a read-only memory (ROM), a programmable ROM (PROM), anelectrically programmable ROM (EPROM), an electrically erasableprogrammable ROM (EEPROM), a flash memory, or the like. The volatilememory may include a random access memory (RAM) or an externalhigh-speed cache. For the purpose of description instead of limitation,the RAM is available in a plurality of forms, such as a static RAM(SRAM), a dynamic RAM (DRAM), a synchronous DRAM (SDRAM), a double datarate SDRAM (DDRSDRAM), an enhanced SDRAM (ESDRAM), a Synchlink DRAM(SLDRAM), a Rambus direct RAM (RDRAM), a direct Rambus dynamic RAM(DRDRAM), and a Rambus dynamic RAM (RDRAM).

After considering the specification and implementing the presentdisclosure, a person skilled in the art can readily think of otherimplementations of this application. This application is intended tocover any variation, use, or adaptive change of this application. Thevariations, uses, or adaptive changes follow the general principles ofthis application and include common general knowledge or commontechnical means in the art that are not disclosed in this application.The specification and the embodiments are merely considered as examples,and the actual scope and the spirit of this application are pointed outby the following claims.

It is to be understood that this application is not limited to theaccurate structures that are described in the foregoing and that areshown in the accompanying drawings, and modifications and changes may bemade without departing from the scope of this application. The scope ofthis application is limited by the appended claims only.

What is claimed is:
 1. A method for displaying a marker element in avirtual scene, performed by a terminal having a processor and memorystoring a plurality of programs to be executed by the processor, themethod comprising: rendering a display interface of the virtual scene,the virtual scene including a plurality of virtual items; obtainingmarker indication information used for indicating a target virtual item,the target virtual item being a virtual item marked by a user of theterminal corresponding to a user account in the virtual scene for useraccounts in a same team to view, the user account controlling a currentvirtual object in the virtual scene, wherein the marker indicationinformation is transmitted by a server when the target virtual item isdetected to be located within a visible distance of the current virtualobject; obtaining graphic data of a marker element according to themarker indication information, the marker element being a graphicelement used for indicating a location of the target virtual item in thevirtual scene to the user accounts in the same team; and rendering themarker element according to the graphic data at a designated locationaround the target virtual item in the display interface of the virtualscene.
 2. The method according to claim 1, further comprising: obtainingdistance information, the distance information being used for indicatinga distance between the target virtual item and the current virtualobject; and displaying the distance information at a designated locationaround the marker element in the display interface.
 3. The methodaccording to claim 2, wherein the distance information comprises atleast one type of the following information: a straight-line distancebetween the target virtual item and the current virtual object; ahorizontal distance between the target virtual item and the currentvirtual object; and a height difference between the target virtual itemand the current virtual object.
 4. The method according to claim 1,wherein the display interface further comprises a thumbnail map of thevirtual scene, and the method further comprises: displaying a markericon of the target virtual item in the thumbnail map corresponding to alocation of the target virtual item in the thumbnail map.
 5. The methodaccording to claim 1, further comprising: displaying a crosshair icon inthe display interface, the crosshair icon being used for indicating adirection that the current virtual object faces; determining a virtualitem targeted by the crosshair icon as the target virtual item in a casethat a marking operation is received; and transmitting a marking requestto the server, the marking request comprising an identifier of thetarget virtual item.
 6. The method according to claim 5, furthercomprising: presenting a marker type selection interface in a case thatthe marking operation is received, the marker type selection interfacecomprising at least two marker options, each marker option correspondingto one marker type; and determining a target marker type in a case thata selection operation performed in the marker type selection interfaceis received, the target marker type being a marker type of a markeroption corresponding to the selection operation; and the transmitting amarking request to the server comprises: transmitting the markingrequest comprising the identifier of the target virtual item and thetarget marker type to the server.
 7. The method according to claim 1,wherein the marker indication information comprises a target markertype; and the obtaining graphic data of a marker element according tothe marker indication information comprises: obtaining the graphic dataof the marker element according to the target marker type.
 8. The methodaccording to claim 1, wherein the marker indication informationcomprises object indication information, the object indicationinformation being used for indicating a virtual object controlled by theuser account corresponding to the terminal marking the target virtualitem; and the obtaining graphic data of a marker element according tothe marker indication information comprises: obtaining the graphic datacorresponding to the virtual object indicated by the object indicationinformation.
 9. The method according to claim 1, further comprising:receiving marker cancellation information, the marker cancellationinformation being information transmitted by the server after a timingduration of a first timer reaches a first preset duration, the firsttimer being started at a moment at which the target virtual item ismarked; and removing the marker element from the display interface ofthe virtual scene.
 10. The method according to claim 1, furthercomprising: removing the marker element from the display interface ofthe virtual scene in a case that a timing duration of a second timerreaches a second preset duration, the second timer being started at amoment at which the marker element is displayed.
 11. A terminal,comprising a processor and a memory, the memory storing a plurality ofcomputer-executable instructions, the plurality of computer-executableinstructions, when being loaded and executed by the processor, causingthe terminal to perform a plurality of operations including: rendering adisplay interface of a virtual scene, the virtual scene including aplurality of virtual items; obtaining marker indication information usedfor indicating a target virtual item, the target virtual item being avirtual item marked by a user of the terminal corresponding to a useraccount in the virtual scene for user accounts in a same team to view,the user account controlling a current virtual object in the virtualscene, wherein the marker indication information is transmitted by aserver when the target virtual item is detected to be located within avisible distance of the current virtual object; obtaining graphic dataof a marker element according to the marker indication information, themarker element being a graphic element used for indicating a location ofthe target virtual item in the virtual scene to the user accounts in thesame team; and rendering the marker element according to the graphicdata at a designated location around the target virtual item in thedisplay interface of the virtual scene.
 12. The terminal according toclaim 11, wherein the plurality of operations further comprise:obtaining distance information, the distance information being used forindicating a distance between the target virtual item and the currentvirtual object; and displaying the distance information at a designatedlocation around the marker element in the display interface.
 13. Theterminal according to claim 12, wherein the distance informationcomprises at least one type of the following information: astraight-line distance between the target virtual item and the currentvirtual object; a horizontal distance between the target virtual itemand the current virtual object; and a height difference between thetarget virtual item and the current virtual object.
 14. The terminalaccording to claim 11, wherein the display interface further comprises athumbnail map of the virtual scene, and the method further comprises:displaying a marker icon of the target virtual item in the thumbnail mapcorresponding to a location of the target virtual item in the thumbnailmap.
 15. The terminal according to claim 11, wherein the plurality ofoperations further comprise: receiving marker cancellation information,the marker cancellation information being information transmitted by theserver after a timing duration of a first timer reaches a first presetduration, the first timer being started at a moment at which the targetvirtual item is marked; and removing the marker element from the displayinterface of the virtual scene.
 16. The terminal according to claim 11,wherein the plurality of operations further comprise: removing themarker element from the display interface of the virtual scene in a casethat a timing duration of a second timer reaches a second presetduration, the second timer being started at a moment at which the markerelement is displayed.
 17. A non-transitory computer-readable storagemedium, storing a plurality of computer-executable instructions, theplurality of computer-executable instructions, when being loaded andexecuted by a processor of a terminal, causing the terminal to perform aplurality of operations including: rendering a display interface of avirtual scene, the virtual scene including a plurality of virtual items;obtaining marker indication information used for indicating a targetvirtual item, the target virtual item being a virtual item marked by auser of the terminal corresponding to a user account in the virtualscene for user accounts in a same team to view, the user accountcontrolling a current virtual object in the virtual scene, wherein themarker indication information is transmitted by a server when the targetvirtual item is detected to be located within a visible distance of thecurrent virtual object; obtaining graphic data of a marker elementaccording to the marker indication information, the marker element beinga graphic element used for indicating a location of the target virtualitem in the virtual scene to the user accounts in the same team; andrendering the marker element according to the graphic data at adesignated location around the target virtual item in the displayinterface of the virtual scene.
 18. The non-transitory computer-readablestorage medium according to claim 17, wherein the plurality ofoperations further comprise: obtaining distance information, thedistance information being used for indicating a distance between thetarget virtual item and the current virtual object; and displaying thedistance information at a designated location around the marker elementin the display interface.
 19. The non-transitory computer-readablestorage medium according to claim 17, wherein the display interfacefurther comprises a thumbnail map of the virtual scene, and theplurality of operations further comprise: displaying a marker icon ofthe target virtual item in the thumbnail map corresponding to a locationof the target virtual item in the thumbnail map.
 20. The non-transitorycomputer-readable storage medium according to claim 17, wherein themarker indication information comprises a target marker type; and theobtaining graphic data of a marker element according to the markerindication information comprises: obtaining the graphic data of themarker element according to the target marker type.